﻿using System;

namespace IssueIT.Core.Domain.Model
{
	public class Reply : Comment
	{
		public Reply(string text, User createdBy) : this(text, Company.Any, createdBy)
		{
		}

		public Reply(string text, Company visibleTo, User createdBy) : base(text, visibleTo)
		{
			CreatedBy = createdBy;
			CreatedAt = SystemTime.Now;
		}

		public User CreatedBy { get; private set; }
		public DateTime CreatedAt { get; private set; }
	}
}